<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./js/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h2>numer = {{numer}}</h2>
        <h2 v-bind:title="message">
            查看动态信息
        </h2>
        <h2> {{text}}</h2>
        <p>
            <input type="text" v-model="text">
        </p>
        <p v-if="seen">现在你看到我了</p>
        <ol>
            <li v-for="todo in todos">{{todo.text}}</li>
        </ol>
    </div>

</body>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            numer: 2116,
            text: "学好/vue",
            message: `页面加载于` + new Date().toLocaleString(),
            seen: true,
            todos: [
                { text: '好好学习' },
                { text: '好好工作!' }]
        }
    })
</script>

</html>